<?php
/**
 * @Author   luyu
 * @DateTime 2019-05-29
 */
namespace app\admin\controller;

use app\common\model\SystemAdmin;
use app\common\controller\BaseAdmin;
use think\Controller;
use think\Db;
use think\facade\Session;

/**
 * @title 大型视频上传
 * Class Vedio
 * @package app\admin\controller
 */
class Vedio extends BaseAdmin
{
    /**
     * @title 视频列表
     * @Author luyu <595080590@qq.com>
     * @Date 2019/5/31
     */
    public function index()
    {
        $list=Db::name('vedio')->order('add_time desc')->paginate(10);
        $page=$list->render();
        $classuri = $this->request->module().'/'.$this->request->controller();
        return $this->fetch('',[
            'list'=>$list,
            'page'=>$page,
            'classuri'=>$classuri,
        ]);
    }

    /**
     * @title 添加视频
     * @Author luyu <595080590@qq.com>
     * @Date 2019/5/31
     */
    public function add()
    {
        if ($this->request->isPost()){

        }else{
            return $this->fetch('vedio/form');
        }
    }

    /**
     * @title 修改视频
     * @Author luyu <595080590@qq.com>
     * @Date 2019/5/31
     */
    public function edit()
    {

    }


    /**
     * @title 删除视频
     * @Author luyu <595080590@qq.com>
     * @Date 2019/5/31
     */
    public function del()
    {

    }


}